set pre_path=%cd%

@echo off
cd src
del Oberon*.java*
cd %pre_path%
@echo on

call gen_scanner.bat
cd %pre_path%
call gen_parser.bat
cd %pre_path%

@echo off
cd src
javac -d ..\bin -classpath ..\javacup\java-cup-11b-runtime.jar; exceptions\*.java .\*.java
cd %pre_path%
echo 执行完毕
pause
@echo on